#!/usr/bin/python
#Filename: func_global.py
x = 50
def func ():
  global x
  print('global x is',x)
  x = 20
  print('gloabal x changed is',x)

func()
print('final x is', x)